Add Button Optionsanimation_opts(p, frame=500, transition=frame, easing=“linear”, redraw=TRUE, mode=“immediate”)
animation_slider(p, hide=FALSE, …)
animation_button(p, …, label)
p: plotly object
frame: amount fo the smooth transition between frames(in milliseconds)
transition: duration of the smooth transition between frames
easing: the type of transition easing
redraw: Trigger a redraw of the plot at completion of the transition
mode: Describes how a new animate call interacts with currently-running animations
(Immediate, next, afterall)
hide: remove tha animation slider
label: character string used for the animation button